From: Alejandro PiƱeiro Date: Tue, 31 Jul 2012 15:39:32 +0000 (+0200) Subject: a11y: exposing percentage label on power menu items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6088 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=83a1c7283df6d87a2c4695ae727a7444c20f324b;p=gnome-shell.git a11y: exposing percentage label on power menu items https://bugzilla.gnome.org/show_bug.cgi?id=682366 --- diff --git a/js/ui/status/power.js b/js/ui/status/power.js index c887406b0..1c18b4d59 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -187,6 +187,8 @@ const DeviceItem = new Lang.Class({ let percentLabel = new St.Label({ text: C_("percent of battery remaining", "%d%%").format(Math.round(percentage)) }); this.addActor(percentLabel, { align: St.Align.END }); + //FIXME: ideally we would like to expose this._label and percentLabel + this.actor.label_actor = percentLabel; }, _deviceTypeToString: function(type) {